//  utils/request.js
import {request} from "../utils/request"

// 课程详情
export function getDetailInfo(courseId) {
  return request({
    url: `/pc/course/detail/${courseId}`,
    method: 'get'
  })
}

// /pc/comment/commentList/course/{courseId}
//课程评论
export function getCommentList(courseId,pageNum=1,pageSize=10) {
  return request({
    url: `/pc/comment/commentList/course/${courseId}?pageNum=${pageNum}&pageSize=${pageSize}`,
    method: 'get'
  })
}

// /pc/course/switch/section/4864
//课程视频
export function getVideo(sectionId) {
  return request({
    url: `/pc/course/switch/section/${sectionId}`,
    method: 'get',
    header:{
      "cookie":"Hm_lvt_007187a7baf02c2d3ef82c4a154bd16f=1744025670,1744025898,1745136862; JSESSIONID=f4ce2ab6-7335-47e4-81f8-7a811164c6ba; Hm_lvt_1e328b60ee13d9d9fdf487ab9f25a8d9=1755476575,1755910718,1757416411,1757499238; HMACCOUNT=C5054D5784914004; Hm_lpvt_1e328b60ee13d9d9fdf487ab9f25a8d9=1757499293"
    }
  })
}